import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'


import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import to from 'await-to-js'
import axios from 'axios'
import { bindToGlobal } from '@/const/index'
import { globalConst } from '@/const/global'


// import * as echarts from 'echarts'
// import 'echarts-gl' // 3d图表库
// Vue.prototype.$echarts = echarts

Vue.use(ElementUI)
Vue.prototype.$axios = axios
Vue.prototype.$to = to
// 常量绑定
bindToGlobal(globalConst, '_const')
Vue.prototype.$const = globalConst
// 消息总线
Vue.prototype.$eventBus = new Vue()
Vue.config.productionTip = false



new Vue({
  router,
  store,
  render: (h) => h(App)
}).$mount('#app')
